set(DARWIN FALSE)
set(FREEBSD FALSE)
set(LINUX FALSE)
set(WINDOWS FALSE)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
  set(FREEBSD TRUE)
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
  set(LINUX TRUE)
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
  set(DARWIN TRUE)
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
  set(WINDOWS TRUE)
endif()

if(NOT LINUX)
  message(FATAL_ERROR "Beringei requires linux right now.")
endif()

set(CMAKE_CXX_STANDARD 14)

add_definitions("-D_GLIBCXX_USE_CXX11_ABI=1")
